
---- 需要接入dc_gate的业务，要在这里配置路由
---- 目前测试环境已经接入  ma  map  subsp  acc*3部分


local require = require
local ns_dc_gate_cal_config1 = require( "modules.dc_gate.config.dc_gate_cal_config1")


local ns_config = {
	_VERSION = '0.12.1',

	__DAY_TIME__    = 86400,

	------------ servers ---------
	servers = {

		--- ssdb
		["/dc/"] = {
			----[[
			ma          = { ip='127.0.0.1', port=8086, },
			map         = { ip='127.0.0.1', port=8086, },
			subsp       = { ip='127.0.0.1', port=8086, },

			--[[
			rcm         = { ip='127.0.0.1', port=8086, },
			rent        = { ip='127.0.0.1', port=8086, },
			cm          = { ip='127.0.0.1', port=8086, },
			welfare     = { ip='127.0.0.1', port=8086, },
			gchat       = { ip='127.0.0.1', port=8086, },
			achieve     = { ip='127.0.0.1', port=8086, },
			punisher    = { ip='127.0.0.1', port=8086, },
			mapbag      = { ip='127.0.0.1', port=8086, },
			battlepass  = { ip='127.0.0.1', port=8086, },
			manor       = { ip='127.0.0.1', port=8086, },
			team        = { ip='127.0.0.1', port=8086, },
			business    = { ip='127.0.0.1', port=8086, },
			hot_update  = { ip='127.0.0.1', port=8086, },
			team_mysql  = { ip='127.0.0.1', port=8086, },
			social      = { ip='127.0.0.1', port=8086, },
			--]]
		},

		--- mysql
		["/dc2/"] = {
			--- 新账号解耦数据
			acc_new      = ns_dc_gate_cal_config1.dc2.acc_new,
			acc_business = ns_dc_gate_cal_config1.dc2.acc_business,
			acc_order    = ns_dc_gate_cal_config1.dc2.acc_order,

			map = {
				ip='120.24.64.132', port=8055,
				select = {
					[5] = { ip='120.24.64.132', port=8056 },
					[6] = { ip='120.24.64.132', port=8056 },
					[7] = { ip='120.24.64.132', port=8056 },
					[8] = { ip='120.24.64.132', port=8056 },
					[9] = { ip='120.24.64.132', port=8056 },
					--select_mod = 10,
				},
			},

			subsp = {
				ip='120.24.64.132', port=8055,
				select = {
					[5] = { ip='120.24.64.132', port=8056 },
					[6] = { ip='120.24.64.132', port=8056 },
					[7] = { ip='120.24.64.132', port=8056 },
					[8] = { ip='120.24.64.132', port=8056 },
					[9] = { ip='120.24.64.132', port=8056 },
					--select_mod = 10,
				},
			},

		},

		--- gauss db redis
		["/dc3/"] = {},

		--- shm
		["/dc4/"] = {
			acc_cache  = { ip='127.0.0.1', port=8086, },
		},

	},

	call_count_rate = 200,   --log rate
};

return ns_config;

